<admintpl file="header"/>
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a href="{:U('AdminAppointment/index')}">预约管理</a></li>
		<li><a href="{:U('AdminAppointment/add')}">添加预约</a></li>
	</ul>
	<form method="post" class="js-ajax-form" action="{:U('AdminAppointment/listorders')}">
		<div class="table-actions">
			<button class="btn btn-primary btn-small js-ajax-submit" type="submit"
					data-action="{:U('Tools/AdminAppointment/indexbat','type=order')}">排序
			</button>
			<button class="btn btn-primary btn-small js-ajax-submit" type="submit"
					data-action="{:U('Tools/AdminAppointment/indexBat','type=delete')}">删除
			</button>
		</div>

		<table class="table table-hover table-bordered">
			<thead>
			<tr>
				<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" id="check_all" data-checklist="js-check-x"></label></th>
				<th width="50">排序</th>
				<th width="50">ID</th>
				<th width="100">姓名</th>
				<th width="100">性别</th>
				<th width="100">手机号</th>
				<th>详细地址</th>
				<th width="100">服务类别</th>
				<th width="100">预约类别</th>
				<th width="120">预约时间</th>
				<th width="120">备注信息</th>
				<th width="120">操作</th>
			</tr>
			</thead>
			<tbody>
			<foreach name="lists" item="vo">
				<tr>
					<td style="vertical-align:middle;">
						<input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
							   value="{$vo['id']}" title="ID:{$vo['id']}"></td>
					<td><input name="orderby[{$vo['id']}]" class="input input-order" type="text" size="3"
							   value="{$vo['orderby']}"/></td>
					<td>{$vo.id}</td>
					<td>{$vo.username}</td>
					<td>{$vo.sex}</td>
					<td>{$vo.mobile}</td>
					<td>{$vo.houses_address}</td>
					<td>{$vo.server_type}</td>
					<td>{$vo.appointment_type}</td>
					<td>{$vo.appointment_time}</td>
					<td>{$vo.msg}</td>
					<td>
						<a href="{:U('AdminAppointment/edit',array('id'=>$vo['id']))}">修改</a>|
						<a href="{:U('AdminAppointment/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">删除</a>
					</td>
				</tr>
			</foreach>
			</tbody>
			<tfooter>
				<tr>
					<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" id="check_all" data-checklist="js-check-x"></label></th>
					<th width="50">排序</th>
					<th width="50">ID</th>
					<th width="100">姓名</th>
					<th width="100">性别</th>
					<th width="100">手机号</th>
					<th>详细地址</th>
					<th width="100">服务类别</th>
					<th width="100">预约类别</th>
					<th width="120">预约时间</th>
					<th width="120">备注信息</th>
					<th width="120">操作</th>
				</tr>
			</tfooter>
		</table>
		<div class="pagination">{$page}</div>
		<div class="table-actions">
			<button class="btn btn-primary btn-small js-ajax-submit" type="submit"
					data-action="{:U('Tools/AdminAppointment/indexbat','type=order')}">排序
			</button>
			<button class="btn btn-primary btn-small js-ajax-submit" type="submit"
					data-action="{:U('Tools/AdminAppointment/indexBat','type=delete')}">删除
			</button>
		</div>
	</form>
</div>
<script src="__PUBLIC__/js/common.js?"></script>
</body>
</html>